<a class="btn btn-green" href="/admin/create/useful">Добавить</a>
<br>
<? foreach ($this->usefuls as $useful) :?>
    <?/** @var $useful Application_Model_Useful */?>
    <div class="useful">
        <h3>
            <span class="info-text" href="/useful/<?= $useful->getId(); ?>"><?= $useful->getUsefulTitle(); ?></span>
        </h3>
        <div class="description"><?= $useful->getUsefulDesc(); ?></div>
        <div class="status <? if ($useful->getUsefulIsActive()) :?>text-success<? else:?>info-text<?endif;?>">Статья <? if ($useful->getUsefulIsActive()) :?>включена<? else:?>выключена<?endif;?></div>
        <a class="btn btn-blue" href="/admin/edit/useful?id=<?= $useful->getId(); ?>">Редактировать</a>
        <a class="btn btn-red" href="/admin/delete/useful?id=<?= $useful->getId(); ?>">Удалить</a>
    </div>
<? endforeach; ?>
